// app.js
import * as util from './utils/util'
import constants from './utils/constants'
App({
  onLaunch() {
    util.updateVerson()
    // if (!wx.getStorageSync('token')) {
    //   util.wxLogin()
    // }
    util.wxLogin()
  },
  loginCallback: null,
  globalData: {
    storageKey: 'userInfo' + constants.API_ROOT_URL,
    unionid: '',
    openid: '',
    userBaseInfo: null // { name, phone }
  }
})
